<script setup>
import { ref } from 'vue'

const props = defineProps({
  title: String
})

const id = ref(Math.random().toString(36).substr(2, 9))
</script>

<template>
  <section :aria-labelledby="id" class="md:border-l md:border-zinc-100 md:pl-6 md:dark:border-zinc-700/40">
    <div class="grid max-w-3xl grid-cols-1 items-baseline gap-y-8 md:grid-cols-4">
      <h2 :id="id" class="text-sm font-semibold text-zinc-800 dark:text-zinc-100">
        {{ props.title }}
      </h2>
      <div class="md:col-span-3">
        <slot />
      </div>
    </div>
  </section>
</template>
